<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <div>
      <div class="title">
        <img class="imgl" src="http://www-wms-java.itheima.net/img/dashboard-banner-left@2x.5afd2949.png" alt="">
        <img class="imgc" src="	http://www-wms-java.itheima.net/img/dashboard-banner-right@2x.28195570.png" alt="">
        <img class="imgr" src="	http://www-wms-java.itheima.net/img/avatar@2x.4f4a758f.png" alt="">
        <p class="txt1">仓储管理员</p>
        <p class="txt2">我不是为了输赢，我就是认真！</p>
        <p class="txt3">—— 罗永浩</p>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.title{
  margin-top: -10px;
  position: relative;
    width: 80%;
    height: 148px;
    background: linear-gradient(270deg,#ffc771,#ffa634);
    box-shadow: 0 0 6px 0 rgb(188 151 69 / 12%);
    border-radius: 12px;
    position: relative;
}
.imgl{
  position: absolute;
    top: 0;
    left: 0;
    height: 148px;
}
.imgc{
  position: absolute;
    top: 0;
    right: 0;
    height: 148px;
}
.imgr{
  position: absolute;
    top: 31px;
    left: 43px;
    height: 62px;

}
.txt1{
  position: absolute;
    left: 36px;
    bottom: 5px;
    font-size: 16px;
    font-family: PingFangSC-Medium,PingFang SC;
    font-weight: 500;
    color: #332929;
    line-height: 22px;
}
.txt2{
  position: absolute;
    font-family: PingFangSC-Medium,PingFang SC;
    font-weight: 500;
    color: #fff;
    line-height: 25px;
    top: 16px;
    left: 200px;
    font-size: 18px;
}
.txt3{
  position: absolute;
    font-family: PingFangSC-Medium,PingFang SC;
    font-weight: 500;
    color: #fff;
    line-height: 25px;
  top: 76px;
    left: 400px;
    font-size: 16px;
}
</style>
